﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "topwidget.h"
#include "configprocess.h"
#include "navwidget/qnavwidget.h"

#include "capcontrol.h"

#include "setparamwidget.h"

#include "currenttestwidget.h"

#include "speedtestwidget.h"

#include "postestwidget.h"

//#include "handshakeandunlockwidget.h"

//#include "funtestwidget.h"


namespace Ui {
class MainWindow;
}



class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QString sComNum,QWidget *parent = 0);
    ~MainWindow();

public slots:
    void onRcvData(QVariant var);
    void onGetThresholdParam(int i32AxisNo,int i32Cmdid);
    void onSetThresholdParam(int i32AxisNo,int i32Cmdid,int i32Value,int datalen);
    void onGroundTest(int i32Axis,int workmode, int data0,int data1);
    void onSetUnlockCmd(int cmd,int value);
    void onSetAixsHandShakeParam(int i32AxisNo,int i32value,int datalen);

public:
    void InitUI();



public:


private:
    Ui::MainWindow *ui;

    QTopWidget* _pTopWidget;
    QNavWidget* _pNavWidget;//侧边导航栏


    QConfigProcess* _pConfigProcess;

    CCapControl* _pCapControl;


    QSetParamWidget* _pSetParamWidget;

    QCurrentTestWidget* _pCurrentTestWidget;


    QSpeedTestWidget* _pSpeedTestWidget;
    QPosTestWidget* _pPosTestWidget;


//    QHandShakeAndunLockWidget* _pHandShakeAndUnlockWidget;

//    QFunTestWidget* _pAziFunTestWidget;
//    QFunTestWidget* _pPitchFunTestWidget;

};

#endif // MAINWINDOW_H
